get /cloud/aws/subnets

List AWS Subnets (getAwsSubnets)

Lists the AWS Subnets.

Consumes

This API call consumes the following media types via the Content-Type request header:

  • application/json

Query parameters

region (required)

Query Parameter — AWS region

vpc (required)

Query Parameter — VPC

credentialsName (required)

Query Parameter — Cloud credentials name

Return type

array[Subnet]

availabilityZone (optional)

String Availability Zone

cidrBlock (optional)

String VNet CIDR Block. Nain block of IP addresses for the VNet. The selected block must not overlap with address blocks used on-prem. Private and public subnets will be carved out of this block. Azure supports small CIDR blocks sizes of /29 and large CDR block sizes of /8.

id (optional)

String

 

Example data

Content-Type: application/json

[

{

"availabilityZone": "eu-west-1c",

"cidrBlock": "10.10.1.0/24",

"id": "subnet-123456"

}

]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

  • application/json

Responses

200

OK

Default

Error ErrorInfo

errorCode (optional)

String

url(optional)

String

message (optional)

String